package com.ruoyi.order.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * VIEW对象 statistic_users
 *
 * @author ruoyi
 * @date 2021-07-08
 */
public class StatisticUsers extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户账号 */
    @Excel(name = "用户账号")
    private String userName;

    /** 用户性别（0男 1女 2未知） */
    @Excel(name = "用户性别", readConverterExp = "0=男,1=女,2=未知")
    private String sex;

    /** 年龄 */
    @Excel(name = "年龄")
    private Long age;

    /** 入职时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "入职时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date entrytime;

    /** 手机号码 */
    @Excel(name = "手机号码")
    private String phone;

    /** 大棚名称 不能重复 */
    @Excel(name = "大棚名称 不能重复")
    private String belongGreenhouse;

    /** 片区名称 不能重复 */
    @Excel(name = "片区名称 不能重复")
    private String belongArea;

    /** 类型 */
    @Excel(name = "类型")
    private String cultivationCrop;

    public void setUserName(String userName)
    {
        this.userName = userName;
    }

    public String getUserName()
    {
        return userName;
    }
    public void setSex(String sex)
    {
        this.sex = sex;
    }

    public String getSex()
    {
        return sex;
    }
    public void setAge(Long age)
    {
        this.age = age;
    }

    public Long getAge()
    {
        return age;
    }
    public void setEntrytime(Date entrytime)
    {
        this.entrytime = entrytime;
    }

    public Date getEntrytime()
    {
        return entrytime;
    }
    public void setPhone(String phone)
    {
        this.phone = phone;
    }

    public String getPhone()
    {
        return phone;
    }
    public void setBelongGreenhouse(String belongGreenhouse)
    {
        this.belongGreenhouse = belongGreenhouse;
    }

    public String getBelongGreenhouse()
    {
        return belongGreenhouse;
    }
    public void setBelongArea(String belongArea)
    {
        this.belongArea = belongArea;
    }

    public String getBelongArea()
    {
        return belongArea;
    }
    public void setCultivationCrop(String cultivationCrop)
    {
        this.cultivationCrop = cultivationCrop;
    }

    public String getCultivationCrop()
    {
        return cultivationCrop;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("userName", getUserName())
                .append("sex", getSex())
                .append("age", getAge())
                .append("entrytime", getEntrytime())
                .append("phone", getPhone())
                .append("belongGreenhouse", getBelongGreenhouse())
                .append("belongArea", getBelongArea())
                .append("cultivationCrop", getCultivationCrop())
                .toString();
    }
}